class ProfileEntity {
  String bio;
  String image;
  // bool following;
  List<String> following;
  List<String> followers;

  ProfileEntity({
    required this.bio,
    required this.image,
    required this.following,
    required this.followers
  });

  Map<String, Object?> toDocument() {
    return {
      'bio': bio,
      'image': image,
      'following': following,
      'followers': followers
    };
  }

  static ProfileEntity fromDocument(Map<String, dynamic> doc) {
    return ProfileEntity(
      bio: doc['bio'],
      image: doc['image'],
      following: doc['following'],
      followers: doc['followers']
    );
  }
}
